package com.java.zhuiyun.api.Micro_major.controller;

import com.java.zhuiyun.api.recommendedCourse.service.RecommendedCourseService;
import com.java.zhuiyun.common.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName MicroMajorController
 * @Description TODO PC微专业
 * @Author WX
 * @Date 2023/8/22 11:13
 **/
@RestController
@RequestMapping("/microMajor")
@CrossOrigin
public class MicroMajorController {
    @Autowired
    private RecommendedCourseService recommendedCourseService;

    /*
    * @Author WX
    * @Description PC微专业
    * @Date 2023/8/22 14:13
    * @Return
    * @param null
    */
    @RequestMapping("/selectMicroMajor")
    public CommonResult selectMicroMajor() {
        return CommonResult.ok(recommendedCourseService.selectMicroMajor());
    }
}
